import request from '@/utils/request'
/**
 * 商品分类列表
 */

export function goodsClassList(params = {}) {
  // console.log('进来了');
  return request({
    url: '/basic/data/goods/class/list',
    method: 'get',
    params: params
  })
}

/**
 * 保存商品分类
 * @param {*} params 
 */
export function goodsClassSave(params = {}) {
  return request({
    url: '/basic/data/goods/class/save',
    method: 'post',
    data: params
  })
}

/**
 * 商品分类更新
 * @param {*} params 
 * @returns 
 */
export function goodsClassUpdate(params) {
  return request({
    url: '/basic/data/goods/class/update',
    method: 'post',
    data: params
  })
}